package com.iss.ljx.login.entity;

import com.iss.ljx.mybatis.entity.PtMenuEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
@Data
public class MenuLevelEntity implements Serializable {

    private String menuId;

    private String menuName;

    private String menuUrl;

    private String menuIcon;

    private List<MenuLevelEntity> childrenList = new LinkedList<>();

    public MenuLevelEntity(PtMenuEntity ptMenuEntity) {
        this.menuId = ptMenuEntity.getMenuId();
        this.menuName = (ptMenuEntity.getMenuName());
        this.menuIcon = ptMenuEntity.getMenuIcon();
        this.menuUrl = ptMenuEntity.getMenuUrl();
    }
}
